package view;

import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

public class EmAddPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel lblAddress_AddEm;
	private JLabel lblBirthday_AddEm;
	private JLabel lblEmail_AddEm;
	private JLabel lblID_AddEm;
	private JLabel lblPass_AddEm;
	private JLabel lblName_AddEm;
	private JLabel lblAccount_AddEm;
	private JLabel lblPhone_AddEm;
	private JLabel lblSex_AddEm;
	private JTextField tfID_AddEm;
	private JTextField tfName_AddEm;
	private JTextField tfPhone_AddEm;
	private JTextField tfEmail_AddEm;
	private JTextField tfAddress_AddEm;
	private JTextField tfPass_AddEm;
	private JTextField tfAccount_AddEm;
	private JButton btnCancel_AddEm;
	private JButton btnAdd_AddEm;
	private JComboBox <String>cbbSex_AddEm;
	private JComboBox<String> cbbDay_AddEm;
	private JComboBox<String> cbbMonth_AddEm;
	private JComboBox <String>cbbYear_AddEm;
	private JPanel panelInfor;
	private JPanel panelAccount;

	public EmAddPanel() {
		initComponents();
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	private void initComponents() {

		panelInfor = new JPanel();
		lblPhone_AddEm = new JLabel();
		lblID_AddEm = new JLabel();
		lblEmail_AddEm = new JLabel();
		lblBirthday_AddEm = new JLabel();
		lblAddress_AddEm = new JLabel();
		lblSex_AddEm = new JLabel();
		tfID_AddEm = new JTextField();
		tfName_AddEm = new JTextField();
		tfPhone_AddEm = new JTextField();
		tfEmail_AddEm = new JTextField();
		tfAddress_AddEm = new JTextField();
		cbbSex_AddEm = new JComboBox<>();
		cbbDay_AddEm = new JComboBox<>();
		cbbMonth_AddEm = new JComboBox<>();
		cbbYear_AddEm = new JComboBox<>();
		lblName_AddEm = new JLabel();
		panelAccount = new JPanel();
		lblPass_AddEm = new JLabel();
		lblAccount_AddEm = new JLabel();
		tfPass_AddEm = new JTextField();
		tfAccount_AddEm = new JTextField();
		btnCancel_AddEm = new JButton();
		btnAdd_AddEm = new JButton();

		setBackground(new java.awt.Color(255, 255, 255));
		setLayout(null);

		panelInfor.setBackground(new java.awt.Color(255, 255, 255));
		panelInfor.setBorder(BorderFactory.createTitledBorder(null, "Information",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12))); 
		panelInfor.setLayout(null);

		lblPhone_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblPhone_AddEm.setText("Phone:");
		panelInfor.add(lblPhone_AddEm);
		lblPhone_AddEm.setBounds(40, 60, 50, 20);

		lblID_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblID_AddEm.setText("Persional ID:");
		panelInfor.add(lblID_AddEm);
		lblID_AddEm.setBounds(350, 60, 90, 30);

		lblEmail_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblEmail_AddEm.setText("Email:");
		panelInfor.add(lblEmail_AddEm);
		lblEmail_AddEm.setBounds(40, 90, 50, 30);

		lblBirthday_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblBirthday_AddEm.setText("Birthday:");
		panelInfor.add(lblBirthday_AddEm);
		lblBirthday_AddEm.setBounds(40, 120, 60, 30);

		lblAddress_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblAddress_AddEm.setText("Address:");
		panelInfor.add(lblAddress_AddEm);
		lblAddress_AddEm.setBounds(350, 30, 60, 30);

		lblSex_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblSex_AddEm.setText("Sex:");
		panelInfor.add(lblSex_AddEm);
		lblSex_AddEm.setBounds(350, 90, 50, 30);
		panelInfor.add(tfID_AddEm);
		tfID_AddEm.setBounds(440, 60, 170, 20);
		panelInfor.add(tfName_AddEm);
		tfName_AddEm.setBounds(120, 30, 170, 20);
		panelInfor.add(tfPhone_AddEm);
		tfPhone_AddEm.setBounds(120, 60, 170, 20);
		panelInfor.add(tfEmail_AddEm);
		tfEmail_AddEm.setBounds(120, 90, 170, 20);
		panelInfor.add(tfAddress_AddEm);
		tfAddress_AddEm.setBounds(440, 30, 170, 20);

		cbbSex_AddEm.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor.add(cbbSex_AddEm);
		cbbSex_AddEm.setBounds(440, 90, 70, 20);

		cbbDay_AddEm.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor.add(cbbDay_AddEm);
		cbbDay_AddEm.setBounds(120, 120, 50, 20);

		cbbMonth_AddEm.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor.add(cbbMonth_AddEm);
		cbbMonth_AddEm.setBounds(180, 120, 50, 20);

		cbbYear_AddEm.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor.add(cbbYear_AddEm);
		cbbYear_AddEm.setBounds(240, 120, 50, 20);

		lblName_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblName_AddEm.setText("Name:");
		panelInfor.add(lblName_AddEm);
		lblName_AddEm.setBounds(40, 30, 60, 20);

		add(panelInfor);
		panelInfor.setBounds(10, 10, 680, 160);

		panelAccount.setBackground(new java.awt.Color(255, 255, 255));
		panelAccount.setBorder(BorderFactory.createTitledBorder(null, "Account",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12))); 
		panelAccount.setLayout(null);

		lblPass_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblPass_AddEm.setText("Password:");
		panelAccount.add(lblPass_AddEm);
		lblPass_AddEm.setBounds(350, 20, 70, 20);

		lblAccount_AddEm.setFont(new java.awt.Font("Calibri", 0, 16)); 
		lblAccount_AddEm.setText("Account:");
		panelAccount.add(lblAccount_AddEm);
		lblAccount_AddEm.setBounds(40, 20, 60, 20);
		panelAccount.add(tfPass_AddEm);
		tfPass_AddEm.setBounds(440, 20, 170, 20);
		panelAccount.add(tfAccount_AddEm);
		tfAccount_AddEm.setBounds(120, 20, 170, 20);

		add(panelAccount);
		panelAccount.setBounds(10, 180, 680, 60);

		btnCancel_AddEm.setIcon(new ImageIcon("icon/cancle.png")); 
		btnCancel_AddEm.setText("Cancel");
		add(btnCancel_AddEm);
		btnCancel_AddEm.setBounds(340, 260, 90, 30);

		btnAdd_AddEm.setIcon(new ImageIcon("icon/add.png")); 
		btnAdd_AddEm.setText("Add");
		btnAdd_AddEm.setToolTipText("");
		add(btnAdd_AddEm);
		btnAdd_AddEm.setBounds(230, 260, 90, 30);
	}

}
